package com.example.wlt.personnel_manegement_system.Manager.Task;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

import com.example.wlt.personnel_manegement_system.R;

/**
 * Created by WLT on 2016/4/24.
 */
public class Creat extends Activity {
    public int x;
    private Button btn_created;//完成任务创建按钮
    private Button btn_back;//返回按钮
    private TextView tv_head;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.task_creat);
        btn_back=(Button)findViewById(R.id.btn_org_headleft);
        btn_created=(Button)findViewById(R.id.btn_taskcreat_created);
        tv_head=(TextView)findViewById(R.id.tv_top_head);
        tv_head.setText("创建任务");
        //返回任务页面首页
        btn_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        //完成任务创建
        btn_created.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(Creat.this,"你已成功创建一个任务",Toast.LENGTH_LONG).show();
                finish();
            }
        });
    }
}
